//
//  WFPictureTableViewCell.m
//  WangyiFangzuo
//
//  Created by 瑜 on 16/9/13.
//  Copyright © 2016年 111. All rights reserved.
//

#import "WFPictureTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation WFPictureTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(WFPictureModel *)model
{
    _model = model;
    _titleLab.text = [NSString stringWithFormat:@"#%@#",model.name];
    _nameLab.text = model.classification;
    _guanzhuLab.text = [NSString stringWithFormat:@"%@关注",model.concernCount];
    _taolunLab.text = [NSString stringWithFormat:@"%@讨论",model.talkCount];
    _arr = model.talkPicture;
    NSURL *url = [NSURL URLWithString:_arr[0]];
    [_img1 sd_setImageWithURL:url];
    NSURL *url1 = [NSURL URLWithString:_arr[1]];
    [_img2 sd_setImageWithURL:url1];
    NSURL *url2 = [NSURL URLWithString:_arr[2]];
    [_img3 sd_setImageWithURL:url2];
}
+ (instancetype)cell
{
    return [[[NSBundle mainBundle] loadNibNamed:@"WFPictureTableViewCell" owner:nil options:nil] lastObject];
 }
@end
